package behavioral.iterator.self;

public class ConcreteAggregate<E> implements Aggregate<E> {
	private E[] mElements;

	public ConcreteAggregate(E[] e) {
		mElements = e;
	}

	@Override
	public Iterator<E> createIterator() {
		return new ConcreteIterator<E>(mElements);
	}
}